package com.storage.mongo;

import org.bson.types.ObjectId;

import com.google.code.morphia.annotations.Embedded;
import com.google.code.morphia.annotations.Entity;
import com.google.code.morphia.annotations.Id;


@Entity
public class ETopic {
	@Id
	private
	ObjectId Id;
	private String topicTitle;
	private String topicContent;
	@Embedded
	private EComments comments;
	private String createdUser;
	private String communityID;
	private String createdDate;
	
	public ETopic()
	{
		comments = new EComments("","","");
	}
	
	public ETopic(EComments newComments)
	{
		comments = newComments;
	}
	
	
	public String getTopicTitle() {
		return topicTitle;
	}
	public void setTopicTitle(String topicTitle) {
		this.topicTitle = topicTitle;
	}
	public String getTopicContent() {
		return topicContent;
	}
	public void setTopicContent(String topicContent) {
		this.topicContent = topicContent;
	}
	public EComments getComments() {
		return comments;
	}
	public void setComments(EComments comments) {
		this.comments = comments;
	}
	public String getCreatedUser() {
		return createdUser;
	}
	public void setCreatedUser(String createdUser) {
		this.createdUser = createdUser;
	}
	public String getCommunityID() {
		return communityID;
	}
	public void setCommunityID(String communityID) {
		this.communityID = communityID;
	}
	public String getCreatedDate() {
		return createdDate;
	}
	public void setCreatedDate(String createdDate) {
		this.createdDate = createdDate;
	}

	public ObjectId getId() {
		return Id;
	}

	public void setId(ObjectId id) {
		Id = id;
	}
	
	
	
}
